<template>
<!-- 折线统计图 -->
  <div>
    <div id="brokenLineGraph" style="width: 100%; height: 300px"></div>
  </div>
</template>
<script>
export default {
  name: "",
  props: {
      brokenLineGraphOption: null
    },
  data() {
    return {
   
    };
  },
  mounted() {
      console.log('data',this.brokenLineGraphOption)
      this.drawBrokenLineGraph()
  },
  methods: {
    //创建累计增速折线统计图
    drawBrokenLineGraph() {
      let myChart = this.$echarts.init(
        document.getElementById("brokenLineGraph")
      );
      myChart.setOption(this.brokenLineGraphOption, true);
      //       1、setOption(option,{boolean = true})
      // 1)第一个参数option，配置图标实例可配置选项
      // 2)第二个表示是否合并option，默认false，多次调用时option选项是默认合并的，可设置为true阻止与上次option的合并
    },
  },
};
</script>
